package com.sunma.receive.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sunma.common.annotation.Excel;
import com.sunma.common.core.domain.BaseEntity;

/**
 * 资产领用明细对象 assets_receive
 * 
 * @author sunma
 * @date 2024-07-08
 */
public class AssetsReceive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 每条记录的唯一标识符 */
    private Long id;

    /** 资产ID */
    @Excel(name = "资产ID")
    private Long assetsId;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetsName;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetsNo;

    /** 领用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String status;

    /** 归还状态 */
    @Excel(name = "归还状态")
    private String returnStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAssetsNo() {
        return assetsNo;
    }

    public void setAssetsNo(String assetsNo) {
        this.assetsNo = assetsNo;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAssetsId(Long assetsId) 
    {
        this.assetsId = assetsId;
    }

    public Long getAssetsId() 
    {
        return assetsId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setReturnStatus(String returnStatus) 
    {
        this.returnStatus = returnStatus;
    }

    public String getReturnStatus() 
    {
        return returnStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assetsId", getAssetsId())
            .append("assetsName", getAssetsName())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("assetsNo", getAssetsNo())
            .append("date", getDate())
            .append("comment", getComment())
            .append("returnDate", getReturnDate())
            .append("status", getStatus())
            .append("returnStatus", getReturnStatus())
            .toString();
    }
}
